<?php
global $base_dir;
$base_dir='../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
?>
<?php
//接收参数
if(is_array($_GET))
{
	foreach($_GET as $key => $value)
	{
		$$key=$value;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$lanmu_name?>-后台管理系统</title>
<link href="../style/common.css" rel="stylesheet" type="text/css" />
<script src="../js/checkform.js" type="text/javascript"></script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="lanmu_table">
  <tr>
    <td height="30" valign="bottom"><a href="<?=$url_list?>"><span class="lanmu_title"><?=$lanmu_name?></span></a><span class="lanmu_title2">&nbsp;&gt;&nbsp;添加</span></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="margintop30_l">
<form action="<?php echo $url_act;?>" method="post" name="search" enctype="multipart/form-data" onsubmit="return checkform();">
<table border="0" cellspacing="1" class="margintop30">
  <tr>
    <td width="114" height="25" align="right" class="title01">用户名:</td>
    <td width="616" class="list_content1"><label>
      <input name="admin_username" type="text" id="admin_username" size="40" datatype="Limit" min="1" max="100" bt="1" char="用户名"/>
      <span class="red">*</span></label></td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">密&nbsp;&nbsp;码:</td>
    <td nowrap="nowrap" class="list_content1"><input name="admin_pwd" type="password" id="news_title22" size="40" datatype="Limit" bt="1" char="密码"/>
      <span class="red">      *</span></td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">真实姓名:</td>
    <td nowrap="nowrap" class="list_content1"><input name="mem_name" type="text" id="mem_name" size="40" char="真实姓名" /></td>
  </tr>
  
  <tr>
    <td height="25" align="right" class="title01">联系电话:</td>
    <td nowrap="nowrap" class="list_content1"><input name="mem_phone" type="text" id="mem_phone" size="40" char="联系电话"/></td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">电子邮箱:</td>
    <td nowrap="nowrap" class="list_content1"><input name="mem_mail" type="text" id="mem_mail" size="40" char="电子邮箱" /></td>
  </tr>
  
  <tr>
    <td height="25" align="right" class="title01">阅读权限:
      <label for="select"></label></td>
    <td nowrap="nowrap" class="list_content1">
<?php
	echo getPermissionsList();
?>
    </td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">是否可用:</td>
    <td nowrap="nowrap" class="list_content1"><input type="radio" name="visiable" value="1" />
      是
      <input name="visiable" type="radio" value="0" checked="checked" />
      否</td>
  </tr>
  <tr>
    <td height="25" colspan="2" align="center" class="list_content1">
      <input type="submit" name="Submit2" value="提交" />
      &nbsp;&nbsp;
      <input name="reset" type="reset" value="重填" />
	  <input name="createtime" type="hidden" id="createtime" value="<?=time()?>" />
      <input name="act" type="hidden" id="act" value="save" />    </td>
  </tr>
</table>
</form>
</body>
</html>
<?php
include_once($base_dir."inc/inc_unconnect.php")
?>